#if !defined(AFX_QUERY_H__965B2CD8_F8BE_4AAD_96CF_410D60C5C1AB__INCLUDED_)
#define AFX_QUERY_H__965B2CD8_F8BE_4AAD_96CF_410D60C5C1AB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Query.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CQuery dialog
#include "SortListCtrl.h"
class CQuery : public CDialog
{
// Construction
public:
	CString fmat(CString str);
	CString sqlimport;
	void initcombo();
	void updatestatic();
	void initlist(CString sql);
	CQuery(CWnd* pParent = NULL);   // standard constructor
	Cdbop *db;
// Dialog Data
	//{{AFX_DATA(CQuery)
	enum { IDD = IDD_QUERY };
	CComboBox	c_query_dep;
	CSortListCtrl	m_list;
	CString	m_section1;
	CString	m_section2;
	CString	m_section0;
	CString	m_scale;
	BOOL	m_check_name;
	BOOL	m_check_dep;
	CString	m_query_name;
	CString	m_query_dep;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CQuery)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CQuery)
	afx_msg void OnButton1();
	afx_msg void OnQueryRt();
	afx_msg void OnSort();
	afx_msg void OnQuerySline();
	afx_msg void OnQueryBili();
	afx_msg void OnQueryOut();
	afx_msg void OnQt();
	virtual BOOL OnInitDialog();
	afx_msg void OnColumnclickQueryList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClose();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_QUERY_H__965B2CD8_F8BE_4AAD_96CF_410D60C5C1AB__INCLUDED_)
